Skip to content

Instantly share code, notes, and snippets.

@halgari
halgari / gist:c17f378718cbd2fd82324002133ef678
Created November 23, 2018 20:54
Contributing to Clojure

So you’d like to contribute to Clojure, great! Let’s talk about what that involves.

The first thing you’ll want to make sure is that your idea is valid, and that you won’t spend a ton of time working on something that won’t make into master. To do this, you should create a JIRA ticket. For example, let’s say we want to improve how core.async handles channel closing propagation. It’s not a super complex problem, but there are some design questions about which of the various semantics currently in place should be the default, and if some semantics should be configurable.

So start by making a JIRA ticket and stating what the problem is you’re trying to solve, what the possible options for solving the problem. Now hit save and wait for the ticket to be triaged. Alex Miller will take a look when he can, and that can take a few days to a few weeks, depending on the time of the year (he has other responsibilities). Alex may out-right reject the idea if he knows Rich would never approve the ticket, but otherwise h

@kimsungwhee
kimsungwhee / CoreAudio.swift
Created July 2, 2020 09:05 — forked from rlxone/CoreAudio.swift
CoreAudio output device useful methods in Swift 4
/*
static func getOutputDevices() -> [AudioDeviceID: String]?
static func isOutputDevice(deviceID: AudioDeviceID) -> Bool
static func getAggregateDeviceSubDeviceList(deviceID: AudioDeviceID) -> [AudioDeviceID]
static func isAggregateDevice(deviceID: AudioDeviceID) -> Bool
static func setDeviceVolume(deviceID: AudioDeviceID, leftChannelLevel: Float, rightChannelLevel: Float)
static func setOutputDevice(newDeviceID: AudioDeviceID)
static func getDeviceVolume(deviceID: AudioDeviceID) -> [Float]
static func getDefaultOutputDevice() -> AudioDeviceID
*/
@andormade
andormade / main.c
Created November 12, 2011 18:00
Audio Queue example
#include <stdlib.h>
#include <math.h>
#include <AudioToolbox/AudioQueue.h>
#include <CoreAudio/CoreAudioTypes.h>
#include <CoreFoundation/CFRunLoop.h>
#define NUM_CHANNELS 2
#define NUM_BUFFERS 3
@vincentbel
vincentbel / setup-shadowsocks-on-debian.sh
Last active May 9, 2024 22:52
Setup shadowsocks on debian
#!/bin/bash
########## Install Shadowsocks ##########
# <https://github.com/shadowsocks/shadowsocks/blob/master/README.md>
apt-get update
apt-get install python-pip -y
pip install shadowsocks
// implicit warning fix
void callfunc();
int main(void) {
callfunc(1);
callfunc(1, 2);
return 0;
}
git clone https://github.com/stitionai/devika.git
conda create -n devika python=3.10
conda activate devika
which python
/usr/local/anaconda3/envs/devika/bin/python -m pip install -r requirements.txt
playwright install --with-deps
npm install
bun run dev
open new terminal
conda activate devika
@raineorshine
raineorshine / commit-author.sh
Created October 12, 2017 17:09
Set git commit author for a single repository
git config user.name "ShapeShift-Public"
git config user.email "mail@hshapeshift.io"
https://help.github.com/articles/setting-your-username-in-git/#setting-your-git-username-for-a-single-repository
@CMCDragonkai
CMCDragonkai / install-comodo-ssl-cert-for-nginx.rst
Last active May 9, 2024 22:48 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@publik-void
publik-void / sin-cos-approximations-gist.adoc
Last active May 9, 2024 22:46
Fast MiniMax Polynomial Approximations of Sine and Cosine

Fast MiniMax Polynomial Approximations of Sine and Cosine

@alpteo
alpteo / semantic-commit-messages-with-emojis.md
Last active May 9, 2024 22:41
Semantic Commit Messages with Emojis

Semantic Commit Messages with Emojis

Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>

Example

:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^   ^---------------^  ^------^
|          |    |           |                  |
| | | | +--&gt; (Optional) Issue reference: if the commit closes or fixes an issue